package com.jic.product.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.product.entity.ProductGuaranteeRelation;
import com.jic.product.rest.response.ProductGuaranteeResponse;

import java.util.List;


/**
 * 商品保障关联表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-01-13 08:07:30
 */
public interface ProductGuaranteeRelationService {

    long insert(ProductGuaranteeRelation productGuaranteeRelation);

    long delete(Long id);

    long update(ProductGuaranteeRelation productGuaranteeRelation);

    ProductGuaranteeRelation queryByPrimaryKey(Long id);

    List<ProductGuaranteeRelation> query(ProductGuaranteeRelation productGuaranteeRelation);

    PageResult<ProductGuaranteeRelation> queryPage(ProductGuaranteeRelation productGuaranteeRelation, Page pageQuery);

    //h5根据商品id查询商品保障
    List<ProductGuaranteeResponse> queryByProductId(long id);

    long[] guaranteeId(ProductGuaranteeRelation productGuaranteeRelation);

}